<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title> Vue 入门示例</title>
</head>

<body>
    <div id="app">
        <input type="text" v-model="youName" placeholder="请输入你的姓名">
        <h1>Hello, {{ youName }}!</h1>
    </div>
    <script src="https://cdn.jsdelivr.net/npm/vue@2"></script>
    <script>
        let app = new Vue({
            el: '#app',
            data: {
                youName: ''
            }
        })
    </script>
</body>

</html>